import { axios, get, post } from "./ajax";

export const http = {
  // 登录
  login: (body) => post("/comment/login", body),
  // 发送验证码
  sentCaptcha: (body) => post("/comment/sendCaptcha", body),
  // 效验验证码登录
  checkcaptcha: (body) => post("/comment/checkcaptcha", body),
  // 注册
  register: (body) => post("/comment/register", body),
  // 获取用户信息
  userlist: (body) => get("/comment/userlist", body),
  // 发送图片
  sendavatar: (body) => post("/comment/sendavatar", body),
  // 添加分类
  addcategory: (body) => post("/comment/category", body),
  // 上传分类图片
  sendpic: (body) => post("/comment/sendpic", body),
  // 获取分类列表
  categorylist: (body) => get("/comment/categorylist", body),
  // 添加选择题
  addchoose: (body) => post("/comment/addchoose", body),
  //更新分类
  updatecategory: (body) => post("/comment/updatecategory", body),
  //删除分类
  categoryDelete: (body) => post("/comment/category-delete", body),

  // 套题
  addpaper: (body) => post("/comment/addpaper", body),

  // 获取的选择题:需要传入状态值，返回不同状态选择题
  getchoose: (body) => post("/comment/getchoose", body),
  // 通过未审核的选择题
  passchoose: (body) => post("/comment/passchoose", body),
  // 审核失败选择题
  deletechoose: (body) => post("/comment/deletechoose", body),

  // 修改个人信息
  updateuser: (body) => post("/comment/updateuser", body),
  // 面经查询头像
  getuserinfo: (body) => post("/comment/getuserinfo", body),
  // 搜索套题
  searchtaotilist: (body) => post("/comment/searchtaotilist", body),
  // 往套题里添加选择题
  taoaddchoose: (body) => post("/comment/taoaddchoose", body),
  // 排序选择题
  sortchoose: (body) => post("/comment/sortchoose", body),
  // 排序套题
  sorttaoti: (body) => post("/comment/sorttaoti", body),
  //添加面试经验
  experience: (body) => post("/comment/experience", body),
  //查询面试经验
  experiencelist: (body) => post("/comment/experiencelist", body),
  //更新面试经验
  updateExperience: (body) => post("/comment/updateExperience", body),
  //删除面试经验
  experienceDelete: (body) => post("/comment/experience-delete", body),
  // 搜索选择题
  searchchoose: (body) => post("/comment/searchchoose", body),
  // 选择题和套题点赞
  adddianzan: (body) => post("/comment/adddianzan", body),
  // 取消点赞
  deletedianzan: (body) => post("/comment/deletedianzan", body),
  // 收藏
  addshouchang: (body) => post("/comment/addshouchang", body),
  // 取消收藏
  deleteshouchang: (body) => post("/comment/deleteshouchang", body),
  // 获取套题数据
  gettaotiDetails: (body) => post("/comment/gettaotiDetails", body),

  // 获取点赞列表
  getstarlist: (body) => post("/comment/getstarlist", body),
  // 获取收藏列表
  getcollectlist: (body) => post("/comment/getcollectlist", body),
  // 修改用户个人信息
  updatepersonal: (body) => post("/comment/updatepersonal", body),
  // 添加反馈意见 
  addadvise: (body) => post("/comment/addadvise", body),
  // 获取反馈列表
  getadviselist: (body) => post("/comment/getadviselist", body),
  // 更新反馈列表
  updateadviselist: (body) => post("/comment/updateadviselist", body),
  // 删除反馈列表
  delateadviselist: (body) => post("/comment/delateadviselist", body),
  // 搜索反馈列表
  searchadviselist: (body) => post("/comment/searchadviselist", body),



  //面经点赞
  addstar: (body) => post("/comment/addstar", body),
  //面经取消点赞
  delstar: (body) => post("/comment/delstar", body),
  //面经收藏
  addcollect: (body) => post("/comment/addcollect", body),
  //面经取消收藏
  delcollect: (body) => post("/comment/delcollect", body),
  //修改热度
  changeHeat: (body) => post("/comment/changeHeat", body),
  //添加公告
  addAnnounces: (body) => post("/comment/addAnnounces", body),
  //查询公告
  announceList: (body) => post("/comment/announceList", body),
  //修改公告
  updateAnnounce: (body) => post("/comment/updateAnnounce", body),
  //删除公告
  announceDelete: (body) => post("/comment/announceDelete", body),
  //获取全部客户
  userall: (body) => get("/comment/userall", body),
};
